[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target flannel.service

[Service]
Type=notify
EnvironmentFile=-/etc/docker/flannel.conf
EnvironmentFile=-/etc/docker/docker.conf
WorkingDirectory={{ linux_work_dir }}/docker
ExecStart=/usr/bin/dockerd \
        $FLANNEL_OPTS \
        $DOCKER_OPTS
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
Restart=on-abnormal
KillMode=process

[Install]
WantedBy=multi-user.target